<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of Make_VMT</title>
  <meta name="keywords" content="Make_VMT">
  <meta name="description" content="MAKE_VMT is a Matlab native &quot;make&quot; file for distributing VMT">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- menu.html VMT_4.0_dev -->
<h1>Make_VMT
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>MAKE_VMT is a Matlab native &quot;make&quot; file for distributing VMT</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function Make_VMT </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> MAKE_VMT is a Matlab native &quot;make&quot; file for distributing VMT
 Run this script to compile VMT on a local machine running Matlab. It will
 also copy all externals (i.e., doc, and background image)
 Assumes all components are in the present working directory.
 
 See also: mcc, copyfile, backup (FEX)

 Frank L. Engel, USGS, IL WSC</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function Make_VMT</a>
0002 <span class="comment">% MAKE_VMT is a Matlab native &quot;make&quot; file for distributing VMT</span>
0003 <span class="comment">% Run this script to compile VMT on a local machine running Matlab. It will</span>
0004 <span class="comment">% also copy all externals (i.e., doc, and background image)</span>
0005 <span class="comment">% Assumes all components are in the present working directory.</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% See also: mcc, copyfile, backup (FEX)</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% Frank L. Engel, USGS, IL WSC</span>
0010 
0011 addpath utils
0012 
0013 <span class="comment">% Destination of EXE</span>
0014 <span class="comment">% ------------------</span>
0015 [fname,pathname] = uiputfile(<span class="string">'VMT.exe'</span>,<span class="string">'Select where to asave VMT compiled executable'</span>);
0016 
0017 [~, filename,ext] = fileparts(fname);
0018 
0019 <span class="comment">% Update documentation</span>
0020 <span class="comment">% --------------------</span>
0021 <span class="keyword">if</span> 1
0022     sdir = pwd;
0023     cd ..
0024     m2html(<span class="string">'mfiles'</span>,<span class="string">'VMT_4.0_dev'</span>, <span class="string">'htmldir'</span>, [sdir filesep <span class="string">'doc'</span>], <span class="string">'recursive'</span>,<span class="string">'on'</span>,<span class="string">'template'</span>,<span class="string">'frame'</span>,<span class="string">'index'</span>,<span class="string">'menu'</span>);
0025     cd (sdir)
0026 <span class="keyword">end</span>
0027 <span class="comment">% Command string</span>
0028 <span class="comment">% --------------</span>
0029 com_str = [<span class="string">'-o '</span> <span class="keyword">...</span>
0030     filename <span class="keyword">...</span>
0031     <span class="string">' -W WinMain -T link:exe -d '</span> <span class="keyword">...</span>
0032     pathname<span class="keyword">...</span>
0033     <span class="string">' -N -p map -p stats -p images -p utils -p doc -p tools -v '</span><span class="keyword">...</span>
0034     <span class="string">'VMT.m -a VMT.fig'</span>];
0035 
0036 <span class="comment">% Compile</span>
0037 <span class="comment">% -------</span>
0038 eval([<span class="string">'mcc '</span> com_str])
0039 
0040 <span class="comment">% Package documentation and externals</span>
0041 <span class="comment">% -----------------------------------</span>
0042 
0043 <span class="comment">% Background image</span>
0044 copyfile(<span class="string">'VMT_Background.png'</span>,[pathname <span class="string">'VMT_Background.png'</span>])
0045 
0046 <span class="comment">% Documentation</span>
0047 backup([pwd filesep <span class="string">'doc'</span>],[pathname <span class="string">'doc'</span>],[],<span class="string">'/E /Y'</span>)
0048</pre></div>
<hr><address>Generated on Thu 21-Mar-2013 09:32:01 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>